From: Adel Gadllah Date: Wed, 2 Oct 2013 13:48:39 +0000 (+0200) Subject: layout: Use monitor index when adding bg managers X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3293 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=15ab285174901e20d251265436055c11aee8398e;p=gnome-shell.git layout: Use monitor index when adding bg managers Don't assume that this._bgManagers.push() (i.e adding to the end) is always correct. On startup we call _createPrimaryBackground which passes in the primary index which may not be 0. --- diff --git a/js/ui/layout.js b/js/ui/layout.js index 9024695db..12717091c 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -362,7 +362,7 @@ const LayoutManager = new Lang.Class({ BackgroundMenu.addBackgroundMenu(bgManager.background.actor); })); - this._bgManagers.push(bgManager); + this._bgManagers[monitorIndex] = bgManager; return bgManager.background; },